org 0x7c00
[bits 16]
xor ax, ax ; eax = 0
; 初始化段寄存器, 段地址全部设为0
mov ds, ax
mov ss, ax
mov es, ax
mov fs, ax
mov gs, ax
mov dl,0
mov dh,8

; 初始化栈指针
mov sp, 0x7c00
mov bh,0x00   ;页码为0

mov ah, 0x09
mov al,'2'
mov bl,0x75 ;白底红字
mov cx,2
int 0x10

mov ah,0x02
inc dl
inc dl
int 0x10

mov ah, 0x09
mov al,'3'
mov cx,1
int 0x10

mov ah,0x02
inc dl
int 0x10

mov ah, 0x09
mov al,'2'
int 0x10

mov ah,0x02
inc dl
int 0x10

mov ah, 0x09
mov al,'0'
int 0x10

mov ah,0x02
inc dl
int 0x10

mov ah, 0x09
mov al,'1'
int 0x10

mov ah,0x02
inc dl
int 0x10

mov ah, 0x09
mov al,'9'
int 0x10

mov ah,0x02
inc dl
int 0x10

mov ah, 0x09
mov al,'3'
int 0x10

jmp $ ; 死循环

times 510 - ($ - $$) db 0
db 0x55, 0xaa